package sg.edu.nus.iss.vmcs.ui.awt;

import java.awt.Component;
import java.awt.LayoutManager;
import java.awt.Panel;

import sg.edu.nus.iss.vmcs.ui.VMCSAbstractPanel;
import sg.edu.nus.iss.vmcs.ui.VMCSComponent;

public class PanelAdapter extends Panel implements VMCSAbstractPanel {
	
	@Override
	public void add(VMCSComponent component) {
		super.add((Component)component);
	}

	@Override
	public void show() {
		
	}

	@Override
	public void setLayout(Object layout) {
		if(layout instanceof LayoutManager) {
			super.setLayout((LayoutManager)layout);
		}
	}

	@Override
	public void add(String name, VMCSComponent component) {
		super.add(name, (Component)component);
	}
	

	/*
	@Override
	public Panel getNativePanel() {
		// TODO Auto-generated method stub
		return this;
	}
	*/
	
}
